package com.lzy.pattern.factory.factory_method;

/**
 * @ClassName: Client
 * @Description: 工厂方法模式
 * @Author: LiuZy
 * @Date: 2022/4/11 21:27
 * @Version: 1.0
 */
public class Client {

    public static void main(String[] args) {

        CoffeeStore store = new CoffeeStore();
        store.setFactory(new AmericanCoffeeFactory());

        store.order();
    }
}